import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import { Tabbar, TabbarItem } from 'vant';
import { Search } from 'vant';
import { Swipe, SwipeItem } from 'vant';



//? vue3实例化根实例以及挂载根实例的写法
const app = createApp(App)
app.use(Tabbar);
app.use(TabbarItem);
app.use(Search);
app.use(Swipe);
app.use(SwipeItem);
app.use(router)

app.mount('#app')

//? vue3抛弃了vue2 用new关键字实例化对象的面向对象语法，更多的使用函数调用来代替